package com.xc.freeapp.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xc.freeapp.dao.AppImageMapper;
import com.xc.freeapp.dao.dataSource.DBContextHolder;
import com.xc.freeapp.entity.AppImage;
import com.xc.freeapp.service.AppImageService;
@Service
public class AppImageServiceImpl implements AppImageService {
	@Autowired
	AppImageMapper appImageMapper;
	public List<AppImage> getAppImageByname(Integer appId,String name,String version){
		DBContextHolder.switchDataSourceRW();//切换数据源
		return appImageMapper.selectByName(appId, name,version);
	}

}
